package com.gitee.wsl.compose.mvi.router

import kotlinx.serialization.Serializable

@Serializable
 class RestorableRoute<R : Any>(
     val route: R,
    private var childState: ByteArray?,
) {
     fun consumeChildState(): ByteArray? =
        childState.also { childState = null }
}